package file;

import java.io.File;
import java.io.IOException;

/**
 * 在该目录下创建test1.txt~ test100.txt
 */
public class Test01 {
    public static void main(String[] args) throws IOException {
        for (int i = 1; i <= 100; i++) {
            File file = new File("java-study-se/test" + i + ".txt");
            if(!file.exists()){
                file.createNewFile();
            }
        }
        System.out.println("创建完成");
    }
}
